﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserInfoList.aspx.cs" Inherits="admin_UserInfoList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    
        <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
    <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>
    <script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script>

    <style type="text/css">
        <!--
        html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
        scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
        .style1
        {
            width: 359px;
        }
        .style2
        {
            width: 101px;
        }
        .style3
        {
            width: 79px;
        }
        -->
    </style>

</head>
<body>
    <form id="form1" runat="server">
            <div class="sub_right_top">
  <div class="hdm_header" >
    <div class="tb1_on"><h2 class="h2_icon">人事卡片</h2></div>

    <div class="clear"></div>
  </div>
  <div class="hdm_footer">
  <div class="share_content_pad">
      <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td class="style2">选择部门：</td>
          <td class="style1">
            <asp:DropDownList ID="ddlSection" runat="server" AppendDataBoundItems="True" 
                  DataSourceID="SectionDataSource" DataTextField="SectionName" 
                  DataValueField="SectionId" Font-Size="12px" Height="20px" Width="177px">
                        <asp:ListItem Value="0">请选择</asp:ListItem>
                    </asp:DropDownList>
          </td>
          <td class="style3">状态：</td>
          <td colspan="2">
                <asp:DropDownList ID="ddlState" runat="server" Font-Size="12px" Height="20px" 
                    Width="197px">
                        <asp:ListItem Value="2">全部</asp:ListItem>
                        <asp:ListItem Value="1">在职</asp:ListItem>
                        <asp:ListItem Value="0">离职</asp:ListItem>
                    </asp:DropDownList>
          </td>
        </tr>
        <tr>
          <td class="style2">用户名：</td>

          <td class="style1">
                <asp:TextBox ID="txtLoginName" runat="server" Width="176px" Height="16px"></asp:TextBox>  
          </td>
          <td class="style3">员工姓名：</td>
          <td colspan="2">
                <asp:TextBox ID="txtUserName" runat="server" Width="201px" Height="16px"></asp:TextBox>
          </td>
        </tr>
        <tr>

          <td class="style2">加入时间：</td>
          <td class="style1">
                <asp:TextBox ID="txtJoinTime" runat="server" CssClass="Wdate" 
                    onClick="WdatePicker()" Width="177px" Height="16px"></asp:TextBox>
          </td>
          <td class="style3">学历：</td>
          <td width="40"><label>
            <asp:DropDownList ID="ddlAcademicCertificate" runat="server" Font-Size="12px" 
                  Height="20px" Width="201px">
                        <asp:ListItem Value="0">请选择</asp:ListItem>
                        <asp:ListItem Value="1">本科</asp:ListItem>
                        <asp:ListItem Value="2">大专</asp:ListItem>
                        <asp:ListItem Value="3">中专</asp:ListItem>
                    </asp:DropDownList>
          </label></td>
          <td><asp:Button ID="Button1" runat="server" Text="查询" OnClick="Button1_Click"/></td>
        </tr>
      </table>
            <br />

            <asp:GridView ID="GridView1" runat="server"  BorderColor="#77ACD0" HorizontalAlign="Center" BorderWidth="1px" GridLines="Horizontal"
            Width="100%" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="UserDataSource" EmptyDataText="没有匹配的数据！" DataKeyNames="UserId" OnRowCommand="GridView1_RowCommand" OnPageIndexChanging="GridView1_PageIndexChanging">
             <Columns>
                <asp:BoundField DataField="UserId" HeaderText="序号" SortExpression="UserId">
                    <HeaderStyle CssClass="itemhead" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="用户名">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("LoginName") %>'
                            CommandName="ShowUserInfo" Text='<%# Eval("LoginName") %>'></asp:LinkButton>
                    </ItemTemplate>
                    <HeaderStyle CssClass="itemhead" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="员工姓名">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%# Eval("LoginName") %>'
                            CommandName="ShowUserInfo" Text='<%# Eval("UserName") %>'></asp:LinkButton>
                    </ItemTemplate>
                    <HeaderStyle CssClass="itemhead" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="性别">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Convert.ToBoolean(Eval("UserInfo.Sex"))==true?"男":"女" %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle CssClass="itemhead" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="状态">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Convert.ToBoolean(Eval("State"))==true?"在职":"离职" %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle CssClass="itemhead" />
                </asp:TemplateField>
            </Columns>

             <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
            <RowStyle BackColor="Transparent" ForeColor="Black" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                                    <PagerStyle BackColor="#E4F1FD" ForeColor="#1E5494" HorizontalAlign="Right" />
                                    <HeaderStyle BackColor="#E4F1FD" ForeColor="#1E5494" BorderColor="#77ACD0" HorizontalAlign="Center"/>
                                    <AlternatingRowStyle BackColor="#E4F1FD" />
        </asp:GridView>

        </div>
        </div>
        </div>
        <asp:ObjectDataSource ID="UserDataSource" runat="server" SelectMethod="FindAll" TypeName="TarreOA.TarreOADAL.UserDAO">
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="SectionDataSource" runat="server" SelectMethod="findParentSectionInfo"
            TypeName="TarreOA.TarreOABLL.SectionServices"></asp:ObjectDataSource>
    </form>
</body>
</html>
